<h2>[{$types_config[$question_info['type']]}]</h2>
<p class="timu">第{$pindex}题.{$question_info['question']}
{if $question_info['thumb'] != ''}
<br>
<img src="{php echo img_url($question_info['thumb'])}" alt="" style="display:inline-block; width:100%; margin-top:10px;"/>
{/if}
</p>
{if $question_info['type'] == 1}
<ul>
    <li><label><input name="answer1" type="radio" value="1" {if $item['answer']==1}checked{/if}/> 正确 </label> </li>
    <li><label><input name="answer1" type="radio" value="2" {if $item['answer']==2}checked{/if}/> 错误  </label> </li>
</ul>
{else if $question_info['type'] == 2}
<ul>
    {loop $answer_array $key $value}
    {if $key <4 || ($key >=4 && (!empty($question_info['items'][$key]) || !empty($question_info['img_items'][$key])) )}
    <li>
        <label><input name="answer2" type="radio" value="{$value}" {if $item['answer'] == "$value"}checked{/if}/> {$value}.{$question_info['items'][$key]} </label> 
        {if $question_info['isimg'] == 1 && !empty($question_info['img_items'][$key])}
        <br>
        <img src="{php echo img_url($question_info['img_items'][$key])}" alt=""/>
        {/if}
    </li>
    {/if}
    {/loop}
</ul>
{else if $question_info['type'] == 3}
<ul>
    {loop $answer_array $key $value}
    {if $key <4 || ($key >=4 && (!empty($question_info['items'][$key]) || !empty($question_info['img_items'][$key])) )}
    <li>
        <label><input name="answer3[]" type="checkbox" value="{$value}" {if stripos($item['answer'], "$value") > -1}checked{/if}/> {$value}.{$question_info['items'][$key]} </label>

        {if $question_info['isimg'] == 1 && !empty($question_info['img_items'][$key])}
        <br>
        <img src="{php echo img_url($question_info['img_items'][$key])}" alt=""/>
        {/if}
    </li>
    {/if}
    {/loop}
</ul>
{/if}
<div class="jieshi">
</div>
<input type="hidden" name="questionid" id="questionid" value="{$question_info['id']}" />
<input type="hidden" name="type" id="type" value="{$question_info['type']}" />
<input type="hidden" name="btime" id="btime" value="{php echo time()}" />

